<template>
    <div>
        <h1>Parent</h1>
        <Sub 
         v-model="message"
         v-model:gender="gender"
         @click="show">用户名：</Sub>
        <p>{{ message }}</p>
        <p>{{ gender }}</p>
    </div>
</template>
<script setup>
import Sub from '../components/Sub.vue';
import { ref } from 'vue';
const message = ref("hello");
const gender = ref("男");
const show = () => {
    console.log("parent show")
}
</script>